<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-wechat-title='$route.meta.title' :key="key" v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>


export default {
  name: 'App',
  computed: {
    key() {
      return this.$route.name ? this.$route.name + new Date() : this.$route + new Date;
    }
  }
}
</script>

<style>
#app {}
</style>
